//
//  AppInfoModel.h
//  Main
//
//  Created by Fanty on 13-12-18.
//  Copyright (c) 2013年 Fanty. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef enum{
    CubeMoudleStatusNone = 0,
    CubeMoudleStatusInstalling = 1,
    CubeMoudleStatusCanUpdate = 5,
    CubeMoudleStatusUpdating = 6,
    CubeMoudleStatusFinish = 2
}CubeMoudleStatus;

//应用验证模型
@interface AppValidate : NSObject

@property(nonatomic,strong) NSString* token;
@property(nonatomic,strong) NSString* expired;

@end


//模块模型
@interface CubeModel:NSObject

@property(nonatomic,strong) NSString* iconUrl;
@property(nonatomic,assign) BOOL autoDownload;

@property(nonatomic,assign) BOOL updateable;

@property(nonatomic,assign) int build;

@property(nonatomic,strong) NSString* version;


@property(nonatomic,strong) NSString* name;


@property(nonatomic,strong) NSString* releaseNote;

@property(nonatomic,strong) NSString* identifier;

@property(nonatomic,strong) NSString* platform;

@property(nonatomic,strong) NSString* moduleUrl;

@property(nonatomic,assign) long downloadedProcess;
@property(nonatomic,assign) long downloadedTotalCount;

@property(nonatomic,assign) BOOL mainModule;

@property(nonatomic,assign) CubeMoudleStatus moduleType;

@end

@interface CubeModelList : NSObject


@property(nonatomic,strong) NSString* platform;

@property(nonatomic,strong) NSString* modifiedAt;

@property(nonatomic,assign) int build;

@property(nonatomic,strong) NSString* bundle;

@property(nonatomic,strong) NSString* identifier;

@property(nonatomic,strong) NSString* version;

@property(nonatomic,strong) NSString* iconUrl;

@property(nonatomic,strong) NSString* releaseNote;

@property(nonatomic,strong) NSString* downloadUrl;

@property(nonatomic,strong) NSString* appUrl;


@property(nonatomic,strong) NSArray* modules;

@property(nonatomic,strong) NSString* mainModuleTag;

@end


